<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<button type="button" onclick="history.back()">返回上一个</button>
<button type="button" onclick="history.go(-2)">返回上一个</button>

<script>

    console.log(history)

</script>
</body>
</html>